/*
 *--------------------------------------------------------------------------
 *   Battlefield - A Realtime Network Multiplayer Game
 *   =====================================================
 *   Developed by Group D02 - 2009/2010 Semester 4 - CS2103
 *     Harry Nguyen Duy Hoang <nnduyhoang@yahoo.co.uk>
 *     Kent Chng Siang Rong <fivefootway@gmail.com>
 *     Lim Yong Peng <limpeng1986@gmail.com>
 *     Loh Xiankun <u0807185@nus.edu.sg>
 *   Instructed by
 *     Dr. Damith C.Rajapakse <damith@gmail.com>
 *   =====================================================
 *   $Id: Generator.java 663 2010-07-30 09:01:11Z Kent $
 *   $LastChangedDate: 2010-07-30 09:01:11 +0000 (Fri, 30 Jul 2010) $
 *   $LastChangedBy: Kent $
 *--------------------------------------------------------------------------
 */
package battlefield;

import battlefield.entity.UnitModel;
import battlefield.state.UnitType;
import battlefield.util.SerializationUtils;

/**
 *
 * @author Harry Nguyen
 */
public class Generator {

    public static void main(String[] args) {
        SerializationUtils.save("src/battlefield/data/bomb.dat", new UnitModel(0, "Bomb", 1, 1, 1000, "/battlefield/images/bomb32x32.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON));
        SerializationUtils.save("src/battlefield/data/tank.dat", new UnitModel(0, "Tank", 2, 2, 5200, "/battlefield/images/tank64x64.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT));
        SerializationUtils.save("src/battlefield/data/gassoldier.dat", new UnitModel(0, "Commando", 1, 1, 6300, "/battlefield/images/Gas-Soldier-icon.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT));
        UnitModel faculty = new UnitModel(0, "Faculty", 3, 3, 4200, "/battlefield/images/faculty.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT);
        faculty.getTransparency()[0][0] = true;
        faculty.getTransparency()[0][2] = true;
        SerializationUtils.save("src/battlefield/data/faculty.dat", faculty);
        SerializationUtils.save("src/battlefield/data/atomicbomb.dat", new UnitModel(0, "Atomic", 2, 1, 1960, "/battlefield/images/atomicbomb.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON));
        SerializationUtils.save("src/battlefield/data/money.dat", new UnitModel(0, "Sell", 1, 1, 0, "/battlefield/images/money.png", "/battlefield/images/blasted32x32.png", UnitType.TOOL));
        SerializationUtils.save("src/battlefield/data/chrome.dat", new UnitModel(0, "Detonator", 2, 2, 3760, "/battlefield/images/Bomb-icon64x64.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON));
        SerializationUtils.save("src/battlefield/data/nuclear.dat", new UnitModel(0, "Nuclear", 3, 2, 5420, "/battlefield/images/nuclear.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON));
        SerializationUtils.save("src/battlefield/data/hellfire.dat", new UnitModel(0, "Hellfire", 1, 4, 3800, "/battlefield/images/hellfire.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON));
        SerializationUtils.save("src/battlefield/data/landmine.dat", new UnitModel(0, "Landmine", 1, 2, 1960, "/battlefield/images/landmine.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON));

        UnitModel napalm = new UnitModel(0, "Napalm", 2, 2, 2880, "/battlefield/images/napalm.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON);
        napalm.getTransparency()[1][0] = true;        
        SerializationUtils.save("src/battlefield/data/napalm.dat", napalm);

        UnitModel cruiser = new UnitModel(0, "Cruiser", 3, 4, 4120, "/battlefield/images/battleship.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT);
        cruiser.getTransparency()[0][0] = true;
        cruiser.getTransparency()[0][1] = true;
        cruiser.getTransparency()[0][3] = true;
        cruiser.getTransparency()[2][0] = true;
        cruiser.getTransparency()[2][1] = true;
        cruiser.getTransparency()[2][3] = true;
        SerializationUtils.save("src/battlefield/data/cruiser.dat", cruiser);

        UnitModel patriot = new UnitModel(0, "Patriot", 3, 4, 2200, "/battlefield/images/patriot.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT);
        patriot.getTransparency()[0][0] = true;
        patriot.getTransparency()[0][3] = true;
        SerializationUtils.save("src/battlefield/data/patriot.dat", patriot);

        UnitModel supertank = new UnitModel(0, "STank", 2, 3, 3400, "/battlefield/images/supertank.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT);
        SerializationUtils.save("src/battlefield/data/supertank.dat", supertank);

        UnitModel squid = new UnitModel(0, "Spitfire", 3, 3, 3060, "/battlefield/images/turbosquid.png", "/battlefield/images/blasted32x32.png", UnitType.EQUIPMENT);
        squid.getTransparency()[2][1] = true;
        squid.getTransparency()[2][2] = true;
        SerializationUtils.save("src/battlefield/data/turbosquid.dat", squid);

        UnitModel missile = new UnitModel(0, "Missile", 2, 3, 4600, "/battlefield/images/missilesys.png", "/battlefield/images/blasted32x32.png", UnitType.WEAPON);
        missile.getTransparency()[1][2] = true;
        SerializationUtils.save("src/battlefield/data/missilesys.dat", missile);


    }
}
